findAssets

abstract suspend fun findAssets(query: FindAssetsQuery): FindAssetsResult

Searches assets based on the query.

Implementations should apply FindAssetsQuery.filter in addition to the legacy query fields. If FindAssetsQuery.facets is non-empty, the implementation may additionally populate FindAssetsResult.facets with value distributions for any subset of the requested paths — ideally computed over the matched set, e.g. by mapping the request to the backend's native faceting (Algolia facets, Elasticsearch aggregations, SQL GROUP BY). Omitting a requested path signals that this source did not compute that facet; returned keys that were not requested are dropped.

Return

asset search result.

Parameters

query

the object that is used to filter results.